package com.aizhixin.lab.project.job;

import com.aizhixin.lab.project.course.service.ProjectGroupTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@EnableScheduling
public class Job {
    @Autowired
    private ProjectGroupTaskService projectGroupTaskService;

    @Scheduled(cron="0 0 0 * * ? ")
    public void scheduledJob(){
        projectGroupTaskService.TaskStatusUpdateJob();
    }
}
